package org.jeecg.modules.AccessoriesCenter.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.AccessoriesCenter.entity.DilinniDaochuEntity;
import org.jeecg.modules.AccessoriesCenter.entity.DilinniEntity;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface DilinniManageMapper {
    IPage<DilinniEntity> getDilinniList(Page<DilinniEntity> page,@Param("status") Integer status,@Param("dilinniNumber") String dilinniNumber);

    int updateDilinnistatus(@Param("id") int id,@Param("status") int status);

    DilinniEntity getDilinnibyId(@Param("id") int id);

    int addDilinni(DilinniEntity entity);

    //查看编号是否已经存在
    String getDilinniNumberbyDilinniNumber(@Param("dilinniNumber") String dilinniNumber);

    int updateDilinni(DilinniEntity entity);

    List<DilinniDaochuEntity> getDilinniDaochulist(@Param("status") Integer status,@Param("dilinniNumber")  String dilinniNumber);

    void addExcelDilinni(DilinniDaochuEntity dilinniDaochuEntity);

    void updateExcelDilinni(DilinniDaochuEntity dilinniDaochuEntity);
}
